<h1><?php echo $title;?></h1>

<?php
echo form_open_multipart('cthesis/edit');
echo "<table class='table-manipulate'>";
echo "<tr>";
echo "<td class='single'><label for='topic'>Topic</label></td>";
echo "<td colspan='4'>";
$data = array('name'=>'topic','id'=>'topic','value'=>$thesis['topic'],'size'=>'68');
echo form_input($data);
echo "</td></tr>";

echo "<tr>";
echo "<td><label for='stud1_fname'>Student1's FirstName</label><br/>";
$data = array('name'=>'stud1_fname','id'=>'stud1_fname','value'=>$thesis['stud1_fname']);
echo form_input($data);
echo "</td>";
echo "<td><label for='stud1_lname'>LastName</label><br/>";
$data = array('name'=>'stud1_lname','id'=>'stud1_lname','value'=>$thesis['stud1_lname']);
echo form_input($data);
echo "</td>";
echo "<td><label for='stud1_phone'>Phone</label><br/>";
$data = array('name'=>'stud1_phone','id'=>'stud1_phone','value'=>$thesis['stud1_phone']);
echo form_input($data);
echo "</td>";
echo "<td><label for='stud1_id'>ID</label><br/>";
$data = array('name'=>'stud1_id','id'=>'stud1_id','size'=>'5','value'=>$thesis['stud1_id']);
echo form_input($data);
echo "</td>";
echo "<td><label for='stud1_group'>Group</label><br/>";
$data = array('name'=>'stud1_group','id'=>'stud1_group','size'=>'5','value'=>$thesis['stud1_group']);
echo form_input($data);
echo "</td>";
echo "</tr>";

echo "<tr>";
echo "<td><label for='stud2_fname'>Student2's FirstName</label><br/>";
$data = array('name'=>'stud2_fname','id'=>'stud2_fname','value'=>$thesis['stud2_fname']);
echo form_input($data);
echo "</td>";
echo "<td><label for='stud2_lname'>LastName</label><br/>";
$data = array('name'=>'stud2_lname','id'=>'stud2_lname','value'=>$thesis['stud2_lname']);
echo form_input($data);
echo "</td>";
echo "<td><label for='stud2_phone'>Phone</label><br/>";
$data = array('name'=>'stud2_phone','id'=>'stud2_phone','value'=>$thesis['stud2_phone']);
echo form_input($data);
echo "</td>";
echo "<td><label for='stud2_id'>ID</label><br/>";
$data = array('name'=>'stud2_id','id'=>'stud2_id','size'=>'5','value'=>$thesis['stud2_id']);
echo form_input($data);
echo "</td>";
echo "<td><label for='stud2_group'>Group</label><br/>";
$data = array('name'=>'stud2_group','id'=>'stud2_group','size'=>'5','value'=>$thesis['stud2_group']);
echo form_input($data);
echo "</td>";
echo "</tr>";

echo "<tr>";
echo "<td><label for='stud3_fname'>Student3's FirstName</label><br/>";
$data = array('name'=>'stud3_fname','id'=>'stud3_fname','value'=>$thesis['stud3_fname']);
echo form_input($data);
echo "</td>";
echo "<td><label for='stud3_lname'>LastName</label><br/>";
$data = array('name'=>'stud3_lname','id'=>'stud3_lname','value'=>$thesis['stud3_lname']);
echo form_input($data);
echo "</td>";
echo "<td><label for='stud3_phone'>Phone</label><br/>";
$data = array('name'=>'stud3_phone','id'=>'stud3_phone','value'=>$thesis['stud3_phone']);
echo form_input($data);
echo "</td>";
echo "<td><label for='stud3_id'>ID</label><br/>";
$data = array('name'=>'stud3_id','id'=>'stud3_id','size'=>'5','value'=>$thesis['stud3_id']);
echo form_input($data);
echo "</td>";
echo "<td><label for='stud3_group'>Group</label><br/>";
$data = array('name'=>'stud3_group','id'=>'stud3_group','size'=>'5','value'=>$thesis['stud3_group']);
echo form_input($data);
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td><label for='stud4_fname'>Student4's FirstName</label><br/>";
$data = array('name'=>'stud4_fname','id'=>'stud4_fname','value'=>$thesis['stud4_fname']);
echo form_input($data);
echo "</td>";
echo "<td><label for='stud4_lname'>LastName</label><br/>";
$data = array('name'=>'stud4_lname','id'=>'stud4_lname','value'=>$thesis['stud4_lname']);
echo form_input($data);
echo "</td>";
echo "<td><label for='stud4_phone'>Phone</label><br/>";
$data = array('name'=>'stud4_phone','id'=>'stud4_phone','value'=>$thesis['stud4_phone']);
echo form_input($data);
echo "</td>";
echo "<td><label for='stud4_id'>ID</label><br/>";
$data = array('name'=>'stud4_id','id'=>'stud4_id','size'=>'5','value'=>$thesis['stud4_id']);
echo form_input($data);
echo "</td>";
echo "<td><label for='stud4_group'>Group</label><br/>";
$data = array('name'=>'stud4_group','id'=>'stud4_group','size'=>'5','value'=>$thesis['stud4_group']);
echo form_input($data);
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td class='single'><label for='uid'>Adviser</label></td>";
echo "<td colspan='4'>";
echo form_dropdown('uid',$lecturers,$thesis['uid']);
echo "</td></tr>";
echo "<tr>";
echo "<td class='single'><label for='batch'>Batch</label></td>";
echo "<td colspan='4'>";
$data = array('name'=>'batch','id'=>'batch','value'=>$thesis['batch']);
echo form_input($data);
echo "</td></tr>";
echo "<tr>";
echo "<td class='single'><label for='status'>Status</label></td>";
echo "<td colspan='4'>";
$data = array('name'=>'status','id'=>'status','value'=>$thesis['status']);
echo form_input($data);
echo "</td></tr>";
echo "<tr>";
echo "<td class='single'><label for='activate'>Activate</label></td>";
echo "<td colspan='4'>";
$options = array('1' => 'active', '0' => 'inactive');
echo form_dropdown('activate',$options, $thesis['activate']);
echo "</td></tr>";
echo "</table>";
echo form_hidden('thesis_id',$thesis['thesis_id']);
echo form_submit(array('class'=>'btn','name'=>'submit'),'Update Thesis');
echo form_close();
?>